import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';
const pageRoutes = [
  {
    path: '/',
    name: '主界面',
    component: () => import('../views/Home.vue'),
  },
  {
    path: '/production',
    name: '生产界面',
    component: () => import('../views/Production.vue'),
  },
  {
    path: '/device',
    name: '设备界面',
    component: () => import('../views/Device.vue'),
  },
  {
    path: '/engineer',
    name: '工程界面',
    component: () => import('../views/Engineer.vue'),
  },
  {
    path: '/quality',
    name: '品质界面',
    component: () => import('../views/Quality.vue'),
  },
  {
    path: '/test',
    name: '测试',
    component: () => import('../views/test.vue'),
  },
  // 以下绿能系统五个页面
  {
    path: '/dataReport',
    name: '数据报表',
    component: () => import('../views/lvneng/dataReport.vue'),
  },
  {
    path: '/dataInfo',
    name: '数据信息',
    component: () => import('../views/lvneng/dataInfo.vue'),
  },
  // {
  //   path: '/pecw',
  //   name: '运行数据',
  //   component: () => import('../views/lvneng/main.vue'),
  // }
];
const router = createRouter({
  //history: createWebHashHistory(import.meta.env.BASE_URL),
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: pageRoutes,
});

export default router;
export { pageRoutes };
